package com.liangwj.springbootdesignpatterns.structureTypePatterns.bridge.demo_1.impl;

import com.liangwj.springbootdesignpatterns.structureTypePatterns.bridge.demo_1.DrawAPI;
import com.liangwj.springbootdesignpatterns.structureTypePatterns.bridge.demo_1.Shape;

/**
 * <b>Description:</b> 继承Shape 抽象类的实体类 <br/>
 * @author Lingwenjun
 * @date 2019/1/23-16:16
 * @version 1.0
 */
public class Circle extends Shape {

    private int radius, x, y;

    public Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.radius = radius;
        this.x = x;
        this.y = y;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius, x, y);
    }
}
